package com.example.drools.model;

/**
 * 风险评估结果模型
 */
public class RiskAssessment {
    private String userId;
    private String riskLevel;  // HIGH, MEDIUM, LOW
    private String riskType;   // 风险类型
    private String reason;     // 风险原因
    private boolean approved;  // 是否通过
    private String action;     // 建议操作

    public RiskAssessment() {}

    public RiskAssessment(String userId, String riskLevel, String riskType, String reason, boolean approved, String action) {
        this.userId = userId;
        this.riskLevel = riskLevel;
        this.riskType = riskType;
        this.reason = reason;
        this.approved = approved;
        this.action = action;
    }

    // Getters and Setters
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRiskLevel() {
        return riskLevel;
    }

    public void setRiskLevel(String riskLevel) {
        this.riskLevel = riskLevel;
    }

    public String getRiskType() {
        return riskType;
    }

    public void setRiskType(String riskType) {
        this.riskType = riskType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public boolean isApproved() {
        return approved;
    }

    public void setApproved(boolean approved) {
        this.approved = approved;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "RiskAssessment{" +
                "userId='" + userId + '\'' +
                ", riskLevel='" + riskLevel + '\'' +
                ", riskType='" + riskType + '\'' +
                ", reason='" + reason + '\'' +
                ", approved=" + approved +
                ", action='" + action + '\'' +
                '}';
    }
}